colon:= :
empty:=
space:= $(empty) $(empty)
_libs := $(wildcard lib/*.jar)
libs := $(subst $(space),$(colon),$(_libs))

DEVICE_ID := LK02DS800202HYS0A212
DEVICE_ID := 00504301642c
DEVICE_ID := 00504301680a

r:
	kotlin -J-ea rebootTest.main.kts $(DEVICE_ID) -cp $(libs)

x:
	kotlin -J-ea rebootTest2.main.kts $(DEVICE_ID) -cp $(libs)


y:
	kotlinc -J-ea -script logcat.main.kts $(DEVICE_ID) -cp $(libs)

r1:
	kotlinc -J-ea -script FactoryReset_Ethernet.kts -cp $(libs) -Xopt-in=kotlin.RequiresOptIn

sleep:
	kotlinc -J-ea -script sleepTest.kts -cp $(libs) -Xopt-in=kotlin.RequiresOptIn -J-ea

.INTERMEDIATE: suspend.main.kts
.PHONY: sleep_wol
suspend.main.kts:
	cat common.kts suspendScript.kts > $@
sleep_wol: suspend.main.kts
	kotlin -J-ea $< 00504301642c
